import os


def test():
    config_id = 3
    running_pids = [{'channel_id': 1, 'pid': 1111} , {'channel_id': 2, 'pid': 2222} ,{'channel_id': 3, 'pid': 3333}]
    is_add = False
    for pid in running_pids:
        if pid['channel_id'] != config_id:
            is_add = True
        else:
            is_add = False
    print(is_add)

if __name__ == '__main__':
    test()
